package edu.nwpu.zya.coreops.modules.resource.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.nwpu.zya.coreops.common.utils.PageUtils;
import edu.nwpu.zya.coreops.modules.resource.entity.AppEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author zhouyuang
 * @email 742025491@qq.com
 * @date 2022-05-23 16:02:47
 */
public interface AppService extends IService<AppEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryRdsVoPage(Map<String, Object> params);

    void saveApp(AppEntity app);

    void updateByApp(AppEntity app);

    void removeRdsByIds(List<Long> ids);

    void deleteAppMockTask(List<Long> ids);

    PageUtils queryMetricVoPageByType(Map<String, Object> params);

    void addMetrics(Long appId, List<Long> metricIds);

    void cancelMetrics(Long appId, List<Long> metricIds);

    AppEntity getAppByInstanceId(String instanceId);

    AppEntity getAppByRuleId(Long ruleId);

    List<AppEntity> getAppListByUserId(Long userId);
}

